<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ page import="com.chanyachting.emall.util.*"%>
<%@ page import="com.chanyachting.emall.domain.*" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<h2><span class="blue">游艇租赁</span></h2>
      <div class="tab_menu">
        <ul>
          <logic:iterate id="scList" name="rentyachtForm" property="subChannelList" indexId="i">
    		<bean:define id="scId" name="scList" property="id"/>
        	<li onClick="callRentAndLeaseServer(1,${i});" <logic:equal name="rentyachtForm" property="subChannelId" value="${scId}"> class="selected"</logic:equal>>${scList.name}</li>
          	</logic:iterate>
        </ul>
      </div>
    <div class="tab_box">
        <div>
        <div class="v_show">
            <div class="scroll"><span class="prev" ><img src="images/pre_01.gif" alt="" /></span><span class="next"><img src="images/next_01.gif" alt="" /></span></div>
            <div class="v_content">
              <div  class="v_content_list">
                <ul>
                <logic:iterate id="rent" name="rentyachtForm" property="channelList" indexId="i">
                <% String hasStyle = "class=\"white\""; if(i % 2 == 1) { hasStyle = "";}  %>
                  <li <%=hasStyle %>>
                  		<bean:define id="subChannelName" name="rent" property="key"/>
            		    <% 
            		    	String scName = subChannelName.toString();
            		    	int scId = scName.lastIndexOf("&");
            		    	scName = scName.substring(0,scId);
            		    %>
                      <a href="/chinayachting/frontend/lease/readProduct01.do?id=${rent.value.companyId}&productId=${rent.value.id}" title="${rent.value.title}"><img src="images/vedio_03.jpg" alt="需程序添加" /></a>
                          <p><a href="/chinayachting/frontend/lease/readProduct01.do?id=${rent.value.companyId}&productId=${rent.value.id}" title="${rent.value.title}">${rent.value.title}</a><br />
					                          价格 ${rent.value.fristRentPrice}<br />
					                      尺寸 ${rent.value.length}×${rent.value.width}<br />
					        <span><%=scName %></span></p>
                  </li>
               </logic:iterate>
               <logic:empty name="rentyachtForm" property="channelList"><li>本频道无信息！</li></logic:empty>
                </ul>
          </div>
   	  </div>
        </div></div>
    </div>